package com.lwt.hospital.service;

import com.lwt.hospital.model.Appointment;
import com.lwt.hospital.model.Doctor;
import com.lwt.hospital.model.Hospitalized;
import com.lwt.hospital.model.Question;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpSession;
import java.util.List;

/**
 * @author 丁兆顺
 * @date 2020/5/19 21:12
 * @desciption
 */
public interface DoctorService {

    int changePassword(Doctor doctor,HttpSession session);

    List<Hospitalized> getPatient(HttpSession session);

    int outHospital(long id);

    List<Appointment> getAppointment(HttpSession session);

    Appointment getAAppointment(Appointment appointment,HttpSession session);

    int modifyAppointment(Appointment appointment,HttpSession session);

    List<Question> getQuestion(HttpSession session);

    Question getAQuestion(Question question,HttpSession session);

    int updateQuestion(Question question,HttpSession session);

    List<Doctor> selectAllDoc();

    int delDoc(Doctor doctor,HttpSession session);

    int addDoc(Doctor doctor,HttpSession session);

    Doctor selectDocById(Doctor doctor);

    int updateDoc(Doctor doctor);
}
